const { ccclass, property, menu } = cc._decorator;

@ccclass
@menu('menu/MenuComponent')
export default class MenuComponent extends cc.Component {

    @property(cc.Label)
    survivalCountLbl: cc.Label = null;

    initUI(survivalCount: number) {
        this.updateUI(survivalCount);
    }

    updateUI(survivalCount: number) {
        this.survivalCountLbl.string = survivalCount + '';
    }

    onCollectBtnClicked(ev: cc.Event.EventTouch) {
    }

    doLoadGame() {
    }
}
